// 接口中使用泛型和与泛型的多类型定义
interface ArticleInterface<B, C> {
  title: string,
  isLock: B,
  comments: C[]
}

type CommentType = {
  content: string,
  desc?: string
}

const article: ArticleInterface<boolean, CommentType> = {
  title: 'zrf',
  isLock: false,
  comments: [{ content: 'hahha', desc: 'book' }]
}